<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: #f2f2f2;
        }

        canvas {
            background-color: #fff;
        }
    </style>
</head>
<body>
    <canvas id="myCanvas" width="400" height="300">
        您的浏览器不支持 Canvas
    </canvas>

    <script>
         /** @type {HTMLCanvasElement} */
        var canvas = document.getElementById('myCanvas');
        var ctx = canvas.getContext('2d');

        // 绘制一个实心文本

        // 绘制一个空心文本

        
       
    </script>
</body>
</html>